let domain
let socketUrl

const locationHref = location.href

if (locationHref.indexOf('localhost') > 0) {
  domain = 'http://localhost:8081/'
  socketUrl = 'ws://localhost:8081/'
} else { // 线上
  domain = 'http://39.108.217.93:8080/'
  socketUrl = 'ws://39.108.217.93:8080/'
}

export default {
  apiUrl: domain,
  socketUrl: socketUrl
}
